package cn.arrow.note.validation.common.enums;

/**
 * 返回状态code及msg
 *
 * @author Walker
 **/

public enum ResultCodeEnum {
    SUCCESS("00000", "操作成功"),
    SYSTEM_ERROR("B0001", "系统执行出错"),
    USER_PARAMETER_ERROR("A0000", "参数错误"),
    USER_PARAMETER_UNEXPECTED_TYPE("A0421", "参数格式不匹配"),
    USER_NOT_PERMISSION("A0301", "访问未授权"),
    SERVICE_INTERFACE_NOT_FOUND("C0113", "接口不存在"),
    USER_ERROR("A0001", "用户端错误");

    private String code;
    private String msg;

    ResultCodeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
